<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/header.jsp"%>
<html>
<body class="easyui-layout list_body">
	<form id="menuForm" name="menuForm">
		<div class="list_body_north" data-options="region:'north'" border="false">
			<!-- 查询表单 -->
			<div style="padding: 3px" class="easyui-panel datagrid-toolbar">
				<div>
					<span>会员编号:</span> <input type="text" id="custom_no"
						name="custom_no"
						 class="easyui-textbox"  /> 
					<span>原手机号:</span> <input type="text" id="old_login_id"
						name="old_login_id"
						 class="easyui-textbox"  /> 
					<span>会员名称:</span>
					<input type="text" id="name" name="name"
						 class="easyui-textbox"  /> 
					<span>新手机号:</span>
					<input type="text" id="new_login_id" name="new_login_id" class="easyui-textbox" /> 
					<a href="#" class="easyui-linkbutton btn" iconCls="icon-search" onclick="doSearch()">查询</a>
					<a href="#" class="easyui-linkbutton btn" iconCls="icon-reload" onclick="resetForm()">重置</a>
				</div>
			</div>
			<!-- 自定义标签工具栏 -->
			<div style="padding: 3px" class="datagrid-toolbar"></div>
		</div>
		<div data-options="region:'center'" border="false" class="list_body_center">
			<!-- 表格 -->
			<table id="menuTableId" fit="true"></table>
		</div>
	</form>
</body>
<script type="text/javascript">
	var grid;
	$(function() {
		/*加载表格数据*/
		grid = $("#menuTableId").jpgrid({
			url : "getCustomLoginidChangeListJson.do",
			columns : [ {
				title : "会员编号",
				field : "CUSTOM_NO",
				align : 'center'
			}, {
				title : "会员名称",
				field : "NAME",
				align : 'center'
			}, {
				title : "原手机号",
				field : "OLD_LOGIN_ID",
				align : 'center'
			}, {
				title : "新手机号",
				field : "NEW_LOGIN_ID",
				align : 'center'
			}, {
				title : "变更原因",
				field : "CHANGE_DESC",
				align : 'center'
			} ]
		});
	});

	function doSearch() {
		grid.load({
			old_login_id : $('#old_login_id').val(),
			name : $('#name').val(),
			new_login_id : $('#new_login_id').val(),
			custom_no : $("#custom_no").val()
		});
	}
</script>
</html>
